package com.yyq.sos.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 实体基类，所有实体均需继承本类.
 *
 */
@MappedSuperclass
public class BaseEntity extends IdEntity {

	protected Long maintainDep;
	
	protected Long creator;
	
	protected Date createDate;
	
	protected String excelIndexMsg;
	
	@Transient
	public String getExcelIndexMsg() {
		return excelIndexMsg;
	}

	public void setExcelIndexMsg(String excelIndexMsg) {
		this.excelIndexMsg = excelIndexMsg;
	}

	@Column(name="maintaindep")
	public Long getMaintainDep() {
		return maintainDep;
	}

	public void setMaintainDep(Long maintainDep) {
		this.maintainDep = maintainDep;
	}

	@Column(name="creator")
	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	@Column(name="createdate")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
